﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SmartSpace.Cwt;

namespace WebApp
{
    public partial class Contacts : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ICwtService service = Global.Get<ICwtService>();
                SmartSpace.Cwt.Company company = service.GetCompany();
                if (company != null)
                {
                    this._ctlTxtTelephone.InnerText = company.Telephone;
                    this._ctlTxtEmail.InnerText = company.Email;
                    this._ctlTxtAddress.InnerText = company.Address;
                    this._ctlTxtPostCode.InnerText = company.PostCode;
                }
            }
        }
    }
}